<%@ page import="com.dao.OrderDAO" %>
<%@ page import="com.model.Order" %>
<%@ page import="java.util.List" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <title>查询商品</title>
    <link rel="stylesheet" type="text/css" href="css/listorser.css">
</head>
<body>
    <h1>订单列表</h1>
    <table>
        <tr>
            <th>ID</th>
            <th>支入支出数量</th>
            <th>总价格</th>
        </tr>
        <%
            // 假设从数据库获取订单信息
            OrderDAO orderDAO = new OrderDAO();
            List<Order> orderList = orderDAO.getAllorder01();
            for (Order order : orderList) {
        %>
        <tr>
            <td><%=order.getProductId()  %></td>
            <td><%=order.getQuantity()  %></td>
            <td><%=order.getTotalPrice()  %> 元</td>
        </tr>
        <% } %>
    </table>
    <a href="listGoods">返回商品列表</a>

</body>
</html>
